# -*- coding: utf-8 -*-
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler

server_address = ('localhost', 80)


class Handler(BaseHTTPRequestHandler):

    def do_GET(self):
        self.send_response(200)
        self.send_header('Content-type', 'text/html')
        self.end_headers()

        self.wfile.write("Hello :) <br /><h1>menangen server</h1>")

def main():
    httpd = HTTPServer(server_address, Handler)
    try:

        print "started http deamon :)"
        httpd.serve_forever()

    except KeyboardInterrupt:

        print "stopped server now!"
        httpd.socket.close()

if __name__ == '__main__':
    main()